package com.ruoyi.contact.service.impl;


import com.ruoyi.common.core.text.Convert;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.contact.domain.ContactReminder;
import com.ruoyi.contact.mapper.ContactReminderMapper;
import com.ruoyi.contact.mapper.ContactReportMapper;
import com.ruoyi.contact.service.IContactReminderService;
import com.ruoyi.contact.service.IContactReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 联系人报表Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-30
 */
@Service
public class ContactReportServiceImpl implements IContactReportService {


    @Autowired
    ContactReportMapper contactReportMapper;

    @Override
    public List<Map<String,Integer>> selectContactCountByCategory() {
        return contactReportMapper.selectContactCountByCategory();
    }

    @Override
    public List<Map<String,Object>> selectContactCountByMonth() {
        return contactReportMapper.selectContactCountByMonth();
    }
}